﻿using System;
using System.Collections.Generic;
using System.Globalization;

namespace EntityFramework6.Services.Data
{
    public class Book
    {
        public int ID { get; set; }
        public string Name { get; set; }
        public string ISBN { get; set; }
        public decimal Price { get; set; }
        public DateTime PublishedDate { get; set; }

        // Enum type
        public Category Category { get; set; }

        // Many to many relationship
        public virtual List<Author> Authors { get; set; }

        // One to many relationship
        public virtual int PublisherId { get; set; } 
        public virtual Publisher Publisher {get; set; }
    }
}